var ec_right2 = echarts.init(document.getElementById("bookTop10"), "dark");

option_ec_right2 = {
    title: {
        text: '图书销量排名TOP10',
        textStyle: {
            color: 'white'
        },
        left: 'left'
    },
    // grid: {
    // 	left: 50,
    // 	top: 50,
    // 	right: 0,
    // 	width: '87%',
    // 	height: 320,
    // },
    color: ['#3398DB'],
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow'
        }
    },
    //全局字体样式
    // textStyle: {
    // 	fontFamily: 'PingFangSC-Medium',
    // 	fontSize: 12,
    // 	color: '#858E96',
    // 	lineHeight: 12
    // },
    xAxis: {
        type: 'category',
        //                              scale:true,
        axisLabel: {
            margin: 8,
            formatter: function (params) {
                var val = "";
                if (params.length > 2) {
                    val = params.substr(0, 2) + '..';
                    return val;
                } else {
                    return params;
                }
            }
        },
        data: []
    },
    yAxis: {
        type: 'value',
        //坐标轴刻度设置
    },
    series: [{
        type: 'bar',
        data: [],
        barMaxWidth: "20%"
    }]
};
ec_right1.setOption(option_ec_right2)